import { request } from '../../../../config/request'
import config from '../../../../config/config'

// 启用禁用
export async function updateStatus(params) {
	return request({
		url: `${config.sysApiHeader}/v1/pearlriver/comm/user/status/update`,
		method: 'PUT',
		data: params
	});
};

// 批量删除
export async function batchDelete(params) {
	return request({
		url: `${config.sysApiHeader}/v1/pearlriver/comm/user/delete`,
		method: 'DELETE',
		data: params
	});
};

// 批量启用禁用
export async function batchUpdate(params) {
	return request({
		url: `${config.sysApiHeader}/v1/pearlriver/comm/user/status/batch/update`,
		method: 'PUT',
		data: params
	});
};

// 组织管理员列表
export async function getOrganize(params) {
	return request({
		url: `${config.sysApiHeader}/v1/pearlriver/comm/role/org/get`,
		method: 'GET',
		data: params
	});
};

// 职能列表
export async function getDuty(params) {
	return request({
		url: `${config.sysApiHeader}/v1/pearlriver/comm/user/duty/list`,
		method: 'GET',
		data: params
	});
};






















